package com.chery.media.library.extend

import android.widget.ImageView
import coil.load
import com.chery.media.library.R

fun <T : ImageView> T.loadPicture(url: Any?, isDefault: Int = R.drawable.ps_image_placeholder): T {
    this.load(url){
        placeholder(isDefault)
        error(isDefault)
    }
    return this
}